#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
const int Maxsize = 1002;
int alen, blen, clen;
int a[Maxsize], b[Maxsize], c[Maxsize];
string x, y;
int main()
{
	cin >> x >> y;
	alen = x.length();
	for (int i = 0;i < alen;i++)
	{
		a[i] = x[alen - 1 - i] - '0';
	}
	blen = y.length();
	for (int i = 0;i < blen;i++)
	{
		b[i] = y[blen - 1 - i] - '0';
	}
	clen = max(alen, blen) + 1;
	for (int i = 0;i < clen;i++)
	{
		c[i] = a[i] + b[i];
	}
	for (int i = 0;i < clen;i++)
	{
		c[i + 1] += c[i] / 10;
		c[i] %= 10;
	}
	while (clen > 1 && c[clen - 1] == 0)
	{
		clen--;
	}
	for (int i = clen - 1;i >= 0;i--)
	{
		cout << c[i];
	}
	return 0;
}